package com.ktgj.train.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.train.mapper.TrainPayNotifyrecordMapper;
import com.ktgj.train.domain.TrainPayNotifyrecord;
import com.ktgj.train.service.ITrainPayNotifyrecordService;

/**
 * 支付退款通知记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-29
 */
@Service
public class TrainPayNotifyrecordServiceImpl implements ITrainPayNotifyrecordService 
{
    @Autowired
    private TrainPayNotifyrecordMapper trainPayNotifyrecordMapper;

    /**
     * 查询支付退款通知记录
     * 
     * @param notifyrecordid 支付退款通知记录ID
     * @return 支付退款通知记录
     */
    @Override
    public TrainPayNotifyrecord selectTrainPayNotifyrecordById(Long notifyrecordid)
    {
        return trainPayNotifyrecordMapper.selectTrainPayNotifyrecordById(notifyrecordid);
    }

    /**
     * 查询支付退款通知记录列表
     * 
     * @param trainPayNotifyrecord 支付退款通知记录
     * @return 支付退款通知记录
     */
    @Override
    public List<TrainPayNotifyrecord> selectTrainPayNotifyrecordList(TrainPayNotifyrecord trainPayNotifyrecord)
    {
        return trainPayNotifyrecordMapper.selectTrainPayNotifyrecordList(trainPayNotifyrecord);
    }

    /**
     * 新增支付退款通知记录
     * 
     * @param trainPayNotifyrecord 支付退款通知记录
     * @return 结果
     */
    @Override
    public int insertTrainPayNotifyrecord(TrainPayNotifyrecord trainPayNotifyrecord)
    {
        return trainPayNotifyrecordMapper.insertTrainPayNotifyrecord(trainPayNotifyrecord);
    }

    /**
     * 修改支付退款通知记录
     * 
     * @param trainPayNotifyrecord 支付退款通知记录
     * @return 结果
     */
    @Override
    public int updateTrainPayNotifyrecord(TrainPayNotifyrecord trainPayNotifyrecord)
    {
        return trainPayNotifyrecordMapper.updateTrainPayNotifyrecord(trainPayNotifyrecord);
    }

    /**
     * 批量删除支付退款通知记录
     * 
     * @param notifyrecordids 需要删除的支付退款通知记录ID
     * @return 结果
     */
    @Override
    public int deleteTrainPayNotifyrecordByIds(Long[] notifyrecordids)
    {
        return trainPayNotifyrecordMapper.deleteTrainPayNotifyrecordByIds(notifyrecordids);
    }

    /**
     * 删除支付退款通知记录信息
     * 
     * @param notifyrecordid 支付退款通知记录ID
     * @return 结果
     */
    @Override
    public int deleteTrainPayNotifyrecordById(Long notifyrecordid)
    {
        return trainPayNotifyrecordMapper.deleteTrainPayNotifyrecordById(notifyrecordid);
    }
}
